@extends('layouts.master3')
@section('content')
<div class="container">
  <h2><?php echo $user->name.'的task日志';?></h2>
  <table class="table table-hover">
    <thead>
      <tr>
        <th>跬步</th>
        <th>结果</th>
        <th>时间</th>
      </tr>
    </thead>
    <tbody>
<?php
foreach($solves as $solve)
{
?>
      <tr>
        <td>{{$solve->taskid}}</td>
        <td><?php if($solve->type==0)echo '正确的答案';else echo '错误的提交';?></td>
        <td>{{$solve->created_at}}</td>
      </tr>
<?Php
}
?>
    </tbody>
  </table>
</div>
@endsection

